package IC.AST.nodes;

import IC.AST.*;

/**
 * a boolean literal
 */
public class BoolLiteral extends Expression {
	private boolean value;	// the value

	/**
	 * @param value the value
	 * @param fileName TODO
	 * @param line the node line number
	 * @param column the node column number
	 */
	public BoolLiteral(boolean value, String fileName, int line, int column) {
		super(fileName, line,column);
		this.value = value;
	}

	/**
	 * @return the value
	 */
	public boolean getValue() {
		return this.value;
	}

	public <D,U> U accept(PropogatingVisitor<D,U> v, D context) throws Exception {
		return v.visit(this,context);
	}
}
